package com.xuetang9.t9.xinhuaxia.beans;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 订单商品详情表
 */
@Table(name = "orderlist")
public class Orderlist implements Serializable {
    /**
     * 编号
     */
    @Id
    @Column(name = "o_id")
    private Long oId;

    /**
     * 订单id
     */
    @Column(name = "o_orderId")
    private Long oOrderid;

    private UserOrderlist userOrderlist;

    /**
     * 商品id
     */
    @Column(name = "o_goodsId")
    private Long oGoodsid;

    private Goods goods;

    /**
     * 商品数量
     */
    @Column(name = "o_count")
    private Integer oCount;

    @Override
    public String toString() {
        return "Orderlist{" +
                "oId=" + oId +
                ", oOrderid=" + oOrderid +
                ", userOrderlist=" + userOrderlist +
                ", oGoodsid=" + oGoodsid +
                ", goods=" + goods +
                ", oCount=" + oCount +
                '}';
    }

    public UserOrderlist getUserOrderlist() {
        return userOrderlist;
    }

    public void setUserOrderlist(UserOrderlist userOrderlist) {
        this.userOrderlist = userOrderlist;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    /**
     * 获取编号
     *
     * @return o_id - 编号
     */
    public Long getoId() {
        return oId;
    }

    /**
     * 设置编号
     *
     * @param oId 编号
     */
    public void setoId(Long oId) {
        this.oId = oId;
    }

    /**
     * 获取订单id
     *
     * @return o_orderId - 订单id
     */
    public Long getoOrderid() {
        return oOrderid;
    }

    /**
     * 设置订单id
     *
     * @param oOrderid 订单id
     */
    public void setoOrderid(Long oOrderid) {
        this.oOrderid = oOrderid;
    }

    /**
     * 获取商品id
     *
     * @return o_goodsId - 商品id
     */
    public Long getoGoodsid() {
        return oGoodsid;
    }

    /**
     * 设置商品id
     *
     * @param oGoodsid 商品id
     */
    public void setoGoodsid(Long oGoodsid) {
        this.oGoodsid = oGoodsid;
    }

    /**
     * 获取商品数量
     *
     * @return o_count - 商品数量
     */
    public Integer getoCount() {
        return oCount;
    }

    /**
     * 设置商品数量
     *
     * @param oCount 商品数量
     */
    public void setoCount(Integer oCount) {
        this.oCount = oCount;
    }

}